<?php
/**
 * session_msg_helper.php
 * @author thanhminh
 * @copyright 2010
 */

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if(!function_exists('ses_setMsg')) {
    function ses_setMsg( $msg, $objSess )
    {
        //$session = &load_class ( 'Session' );
        if(is_array($msg)) {
            $objSess->set_userdata($msg);
        } else {
            $objSess->set_userdata('ses_msg', $msg);
        }
    }
}

?>